package com.mycompany.myapp.web.rest.aoptestcontroller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by wys on 2018/8/1
 */
@RestController
@RequestMapping(value = "/aop")
public class AOPTestOneController {

    @RequestMapping("/first")
    public String controllerfirst() {

        System.out.println(" =-=-=-=-=-=-=-=-=-=-=-=-=-=-= "
        +"/n"+"-=-=-=-=-=-=-=");

        return "first";
    }

    @RequestMapping("/two")
    public String controllertwo() {

        return "two";
    }

    @RequestMapping("/setState")
    public String controllersetState(String a) {

        return "setState:"+a;
    }

    @RequestMapping("/setStates")
    public String controllersetStates(String a,String b,String c) {

        return "setState a:"+a+" b:"+b+" c:"+c;
    }



}
